package jmu.cyxwcy.librarymanagement.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2024-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("students")
public class Students implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "student_id", type = IdType.AUTO)
    private Integer studentId;

    private Integer userId;

    private String username;

    private String password;

    private String studentName;

    private String status;

    private Integer classId;

    private String email;

    @TableField(exist = false)
    private Integer categoryId;//读者类别
    @TableField(exist = false)
    private String collegeName;//学院名
    @TableField(exist = false)
    private String majorName;//专业名
    @TableField(exist = false)
    private String className;//班级名
    @TableField(exist = false)
    private String categoryName;//读者类别名
}
